<!DOCTYPE html>
<!--[if IE]><![endif]-->
<!--[if IE 8 ]><html dir="ltr" lang="en" class="ie8"><![endif]-->
<!--[if IE 9 ]><html dir="ltr" lang="en" class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html dir="ltr" lang="en">
<!--<![endif]-->
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>full diamond necklace  necklace 18K gold</title>
<base href="http://liyifuuen.dr/" />
<script src="catalog/view/javascript/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
<link href="catalog/view/javascript/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />
<script src="catalog/view/javascript/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<link href="catalog/view/javascript/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="catalog/view/javascript/font_771764_79q6pizowr5/iconfont.css" rel="stylesheet" type="text/css" />
    <link href="//fonts.googleapis.com/css?family=Open+Sans:400,400i,300,700" rel="stylesheet" type="text/css" />
<link href="catalog/view/theme/default/stylesheet/stylesheet.css" rel="stylesheet">
<link href="catalog/view/javascript/jquery/magnific/magnific-popup.css" type="text/css" rel="stylesheet" media="screen" />
<link href="catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css" type="text/css" rel="stylesheet" media="screen" />
<link href="catalog/view/javascript/jquery/swiper/css/swiper.min.css" type="text/css" rel="stylesheet" media="screen" />
<link href="catalog/view/javascript/jquery/swiper/css/opencart.css" type="text/css" rel="stylesheet" media="screen" />
<script src="catalog/view/javascript/jquery/magnific/jquery.magnific-popup.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/jquery/datetimepicker/moment/moment.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/jquery/datetimepicker/moment/moment-with-locales.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<script src="catalog/view/javascript/jquery/swiper/js/swiper.jquery.js" type="text/javascript"></script>
<script src="catalog/view/javascript/common.js" type="text/javascript"></script>
<link href="http://liyifuuen.dr/index.php?route=product/product&amp;product_id=85" rel="canonical" />
</head>
<body>
  <script type="text/javascript" src="//js.users.51.la/19620335.js"></script>
                                                                                                                                                                                                                                                                                        

<script>
	!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
		n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
		n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
		t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
		document,'script','https://connect.facebook.net/en_US/fbevents.js');
		    			   fbq('init', 1752970901428970);
		    			
			fbq('track', "PageView");
	fbq('track', "ViewContent");
</script>
<div id="product-product" class="container">
    <div id="content">
                <div id="tipModule"></div>
                <div class="mask"></div>
                <form class="form-horizontal" id="form-review">
            <div class="write-title">
                Write a review
                <i class="close-write iconfont icon-cha"></i>
            </div>
                            <div class="form-group">
                    <div class="col-sm-12">
                        <label class="control-label" for="input-name">Your Name</label>
                        <input type="text" name="name" value="" id="input-name"
                               class="form-control"/>
                    </div>
                </div>
                <div class="form-group required">
                    <div class="col-sm-12">
                        <label class="control-label" for="input-review">Your Review</label>
                        <textarea name="text" rows="5" id="input-review"
                                  class="form-control" style="resize: none"></textarea>
                                            </div>
                </div>
                <div class="form-group required">
                    <div class="col-sm-12 flex-center">
                        <label class="control-label">Rating</label>
                        <div class="stars">
                            <label>
                                <span class="star fa fa-stack">
                                    <i class="star fa fa-star-o fa-stack-1x"></i>
                                </span>
                                <input type="radio" name="rating" value="1"/>
                            </label>
                            <label>
                                <span class="star fa fa-stack">
                                    <i class="star fa fa-star-o fa-stack-1x"></i>
                                </span>
                                <input type="radio" name="rating" value="2"/>
                            </label>
                            <label>
                                 <span class="star fa fa-stack">
                                     <i class="star fa fa-star-o fa-stack-1x"></i>
                                 </span>
                                <input type="radio" name="rating" value="3"/>
                            </label>
                            <label>
                                 <span class="star fa fa-stack">
                                     <i class="star fa fa-star-o fa-stack-1x"></i>
                                 </span>
                                <input type="radio" name="rating" value="4"/>
                            </label>
                            <label>
                                 <span class="star fa fa-stack">
                                    <i class="star fa fa-star-o fa-stack-1x"></i>
                                 </span>
                                <input type="radio" name="rating" value="5"/>
                            </label>
                        </div>
                    </div>
                </div>
                
                <div class="buttons clearfix">
                    <div class="pull-right">
                        <button type="button" id="button-review"
                                data-loading-text="Loading...">Continue</button>
                    </div>
                </div>
                    </form>
                <div class="product-content">
                        <div id="goods-img-banner" class="swiper-container">
                <ul class="swiper-wrapper" style="list-style: none;padding: 0;">
                    <li class="swiper-slide text-center">
                        <a class="thumbnail goods-img" href="javascript:" title="full diamond necklace  necklace 18K gold">
                            <img src="http://liyifuuen.dr/image/catalog/TB1I0MUt8yWBuNkSmFPXXXguVXa_!!0-item_pic.jpg_430x430q90.jpg" alt="full diamond necklace  necklace 18K gold" class="img-responsive"/>
                        </a>
                    </li>
                                    </ul>
                <div class="swiper-pagination slideshow-point"></div>
            </div>
            <script type="text/javascript">
                var options = {
                    mode: 'horizontal',
                    slidesPerView: 1,
                    pagination: '.slideshow-point',
                    paginationClickable: true,
                    autoplay: 2500,
                    autoplayDisableOnInteraction: true,
                };
                if($('#goods-img-banner .swiper-wrapper').find('.swiper-slide').length > 1){
                    options.loop = true;
                }
                $('#goods-img-banner').swiper(options);
            </script>
                        <div class="product-price">
                <div class="price-box">
                                            <h3>PHp3,100</h3>
                        <span style="text-decoration: line-through;padding: 0 6px;">PHp16,784</span>
                                    </div>
                                <div class="commitment">
                    <span>free shipping</span>
                    <span>Cash on delivery</span>
                    <span style="background-color: #000000;">7-day appreciation period</span>
                </div>
            </div>
                        <div class="send">
                <div style="opacity: 0"><img src="/ueditor/php/upload/image/images/heimao.png" alt="">黑猫宅急便配送</div>
                <div id="countdown">
                                    </div>
            </div>
                        <div class="progress-box">
                Snapped Up 139
                <div class="product-progress">
                                        <div class="progress-color" style="left: -70.10752688172%"></div>
                                    </div>
                29.89%
            </div>
                        <h2><strong>full diamond necklace  necklace 18K gold</strong><strong></strong></h2>
                        <div class="nav" id="nav">
                <div id="toInfo">Description</div>
                <div id="toGuige">Specification</div>
                <div id="toMessage">Reviews (0)</div>
            </div>
                        <div class="description" id="goods-info">
                <p style="text-align: center;"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180818/1534555016361890.jpg" title="1534555016361890.jpg" alt="%YEK_`QGLD9IF8V~%9$7``T.jpg"/></p><p style="text-align: center;"><br/></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"></span></p><p style="white-space: normal; text-align: center;"><br/></p><p style="white-space: normal; text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);">Recently, the customs confiscated a large number of smuggled luxury goods</span></p><p style="white-space: normal; text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);">Customs launched a public auction last month</span></p><p style="white-space: normal; text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);">We are fortunate to have this shipment</span></p><p style="white-space: normal; text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);">Now sold at below market price</span></p><p style="white-space: normal; text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);">This opportunity is very rare.</span></p><p style="white-space: normal; text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);">It’s hard to get it if you miss this opportunity.</span></p><p style="white-space: normal; text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);">This B*****i necklace is perfect for a gift to your lover.</span></p><p style="white-space: normal; text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);">It is also very suitable to give you the best friend.</span></p><p style="white-space: normal; text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);">The diamond-studded necklace looks very high-end atmosphere</span></p><p style="white-space: normal; text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);">Friends around you will envy you very much.</span></p><p style="white-space: normal; text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);">US official website price of&nbsp;<span style="background-color: rgb(0, 112, 192); color: rgb(255, 255, 255);">3,150 US dollars</span>, equivalent to&nbsp;<span style="background-color: rgb(0, 112, 192); color: rgb(255, 255, 255);">167,844 pesos</span></span></p><p style="white-space: normal; text-align: center;"><span style="font-size: 24px; color: rgb(0, 112, 192);">Today you can have it for only</span><span style="font-size: 24px;">&nbsp;</span><span style="font-size: 24px; text-decoration-line: underline; color: rgb(0, 176, 240);">3100pesos！</span></p><p style="white-space: normal; text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);">The people around you must not know that you bought a diamond-studded B****i necklace at<span style="background-color: rgb(0, 176, 80);">&nbsp;such a low price</span>.</span></p><p style="white-space: normal; text-align: center;"><span style="background-color: rgb(255, 255, 255); font-size: 24px; color: rgb(0, 0, 0); text-decoration: none;">【Prompt】：</span></p><p style="white-space: normal; text-align: center;"><span style="background-color: rgb(255, 255, 255); text-decoration: underline; font-size: 24px; color: rgb(0, 0, 0);">【We have mosaiced all the logos in the photos below, but it does&nbsp;</span></p><p style="white-space: normal;"><span style="background-color: rgb(255, 255, 255); text-decoration: underline; font-size: 24px; color: rgb(0, 0, 0);"><br/></span></p><p style="white-space: normal; text-align: center;"><span style="background-color: rgb(255, 255, 255); text-decoration: underline; font-size: 24px; color: rgb(0, 0, 0);"><span style="text-align: center; text-decoration-line: underline; background-color: rgb(255, 255, 255); font-size: 24px;">not&nbsp;</span><span style="text-align: center; text-decoration-line: underline; background-color: rgb(255, 255, 255); font-size: 24px;">affect the authenticity of the items you receive.】</span></span></p><p style="white-space: normal; text-align: center;"><span style="background-color: rgb(255, 255, 255); color: rgb(0, 32, 96); text-decoration: underline; font-size: 24px;"><br/></span></p><p style="white-space: normal; text-align: center;"><span style="background-color: rgb(255, 255, 255); color: rgb(0, 32, 96); text-decoration: underline; font-size: 24px;"><br/></span></p><p style="white-space: normal; text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><br/></span></p><p style="white-space: normal; text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);">This is the price of the US official website.</span></p><p style="white-space: normal; text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180820/1534755300255279.png" title="1534755300255279.png" alt="TIM截图20180818150101.png"/></span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"></span><br/></p><p style="text-align: center;"><br/></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><br/></span></p><p><br/></p><p style="text-align: center;"><span style="font-size: 20px;">Customs confiscated a large number of smuggled luxury goods in June this year.</span></p><p style="text-align: center;"><span style="font-size: 20px;">This is a live photo</span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180818/1534555947882943.jpg" title="1534555947882943.jpg" alt="EQQV8W3]NE`A6U4%]6%ECZH.jpg"/></span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);">The sea has conducted a public auction in July this year.</span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);">Our company successfully obtained this batch of goods.</span></p><p style="text-align: center;"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180818/1534556059736655.png" title="1534556059736655.png" alt="6S]D(00_T3%2N`%EPZ4QAJK.png"/></p><p style="text-align: center;">Our company has handled all legal procedures</p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180818/1534555971145237.jpg" title="1534555971145237.jpg" alt="88~H]{SNE87QEIHL_`CZ{%0.jpg"/><br/></span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"></span><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><video class="edui-upload-video  vjs-default-skin video-js" controls="" preload="none" width="420" height="280" src="/ueditor/php/upload/video/20180822/1534921999352535.mp4" data-setup="{}"></video></span><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><br/></span></p><p><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><br/></span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180818/1534556212912029.jpg" title="1534556212912029.jpg" alt="TB1I0MUt8yWBuNkSmFPXXXguVXa_!!0-item_pic.jpg_430x430q90.jpg"/></span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180818/1534556258702044.jpg" title="1534556258702044.jpg" alt="TB2MB_usY5YBuNjSspoXXbeNFXa-1942556294.jpg"/></span></p><p style="text-align: center;"><span style="font-size: 20px; color: rgb(0, 32, 96); background-color: rgb(0, 176, 80);">This is a real photo of our employees on the goods.</span></p><p><br/></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180818/1534556083348250.png" title="1534556083348250.png" alt="TB2QGCyaV95V1Bjy0FhXXb5wXXa_!!27202286.png"/></span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180820/1534755340334906.png" title="1534755340334906.png" alt="1.png"/></span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180818/1534556533396573.png" title="1534556533396573.png" alt="5.png"/></span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);">This is&nbsp; </span><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96); text-decoration: underline;">Real shot video</span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96); text-decoration: underline;"></span><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><video class="edui-upload-video  vjs-default-skin video-js" controls="" preload="none" width="420" height="280" src="/ueditor/php/upload/video/20180822/1534922037289284.mp4" data-setup="{}"></video></span><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><br/></span><br/></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><br/></span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);">This is another project of this auction.</span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180820/1534755365414893.png" title="1534755365414893.png" alt="TB2Jue9jtcnBKNjSZR0XXcFqFXa_!!3436624618.png"/></span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180820/1534755380328295.png" title="1534755380328295.png" alt="O1CN011UdMSFTSKnED35I_!!1703622540.png"/></span></p><p style="text-align: center;"><span style="font-size: 20px; color: rgb(0, 32, 96); background-color: rgb(0, 176, 80);">brand introduction</span></p><p style="text-align: center;"><span style="font-size: 20px; color: rgb(0, 32, 96); background-color: rgb(0, 176, 80);"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180820/1534730650378720.jpg" title="1534730650378720.jpg" alt="7f149fe6f2fd3dc2afe09c8d33401e24.jpg"/></span></p><p style="text-align: center;">At
 the end of the 19th century, the Greek silversmith Sotirio Bulgari 
opened the first jewellery shop on the Cistina Avenue in Rome in a 
divisive environment, selling some antique jewellery and Sodiri. The 
silverware created by Europe itself. Who knows, this is the beginning of
 a miracle, a legend of more than 130 years is about to begin.</p><p style="text-align: center;"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180820/1534730688189692.jpg" title="1534730688189692.jpg" alt="9161824f8531e2e8d115a2644546b91a.jpg"/></p><p style="text-align: center;"><span style="font-size: 20px; color: rgb(0, 32, 96); background-color: rgb(0, 176, 80);">product details</span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180820/1534755408993093.png" title="1534755408993093.png" alt="3.png"/></span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180818/1534556605103819.png" title="1534556605103819.png" alt="4.png"/></span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180818/1534556617212230.png" title="1534556617212230.png" alt="6.png"/></span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180818/1534556629572742.png" title="1534556629572742.png" alt="7.png"/></span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180818/1534556641800108.png" title="1534556641800108.png" alt="22.png"/></span></p><p style="text-align: center;"><span style="font-size: 20px; color: rgb(0, 32, 96); background-color: rgb(0, 176, 80);">Company Profile</span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);">Our company was founded in 1998 and is dedicated to serving large retailers.</span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);">Our company has been supplying large shopping malls for many years.</span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180818/1534556672897541.jpg" title="1534556672897541.jpg" alt="TB21qNUl2iSBuNkSnhJXXbDcpXa_!!3530171418.jpg"/></span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180821/1534800121122198.png" title="1534800121122198.png" alt="154033ea3fd109305f698f391c55d4a7.png"/></span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"></span></p><p><br/></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180818/1534556717780692.png" title="1534556717780692.png" alt="9.png"/></span></p><p style="text-align: center;"><span style="font-size: 20px; color: rgb(0, 32, 96); background-color: rgb(0, 176, 80);">Buyers notice</span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);">Please be sure to fill in your address and communication information when you place your order.Thank you for your support！</span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><img src="http://www.trfcde.com/ueditor/php/upload/image/20180818/1534556819656353.png" title="1534556819656353.png" alt="物流 (1).png"/></span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><br/></span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><br/></span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><br/></span></p><p style="text-align: center;"><span style="font-size: 20px; background-color: rgb(255, 255, 255); color: rgb(0, 32, 96);"><br/></span></p><p><br/></p>
            </div>
                        <div class="description" id="goods-guige">
                
            </div>
                                        <div class="message" id="message"></div>
                                    <div class="user-know">
                <div class="user-know-title">
                    ·User notice
                </div>
                <div class="user-know-content">
                    The actual use of this product is determined according to individual circumstances, and does not guarantee that every user can enjoy the effect of the promotion. If you have any questions, please contact our online customer service or contact us at
                    <a href="mailto:service@ppizy.com" style="color:#F8770E">service@ppizy.com</a>
                    The company has the final interpretation right.
                </div>
                <div class="user-know-title">
                    ·How to apply for a return
                </div>
                <div class="user-know-content">
                    <div>1.Return due to personal reasons: Within 7 days from the date of receipt of the goods, please contact our online customer service or send an email to
                        <a href="mailto:service@ppizy.com" style="color:#F8770E">service@ppizy.com</a>
                        without affecting the second sale. After-sales customer service will receive Your request will be accepted within 1-3 business days after the news, and the shipping charges incurred will be at your own risk.
                    </div>
                    <div>2.Return due to quality reasons: Within 7 days from the date of receipt of the goods, send an email to
                        <a href="mailto:service@ppizy.com" style="color:#F8770E">service@ppizy.com</a>
                        to the after-sales service center. The customer service will accept the application within 1-3 working days after receiving the mail. Your request, the freight generated by the return and exchange will be borne by us.
                    </div>
                </div>
                <div class="user-know-title">
                    ·Return process
                </div>
                <div class="user-know-content">
                    Confirm receipt - apply for return - customer service review - user return goods - warehouse receipt inspection - refund
                    Exchange Review - Refund / Exchange;If return or exchange, please specify: order number, name, phone number.
                </div>
                <div class="user-know-title">
                    ·How to cancel an order
                </div>
                <div class="user-know-content">
                    To cancel the order, you need to send an email to the after-sales service center and indicate the relevant reason. The content of the email should indicate your order number, name, and phone number.
                </div>
            </div>
                        <div class="bottom-btn">
                <div class="cart between">
                    <i class="iconfont icon-dingdan"></i>
                    <span>Checking Order</span>
                </div>
                <div class="buy">
                    <i class="iconfont icon-head104"></i>
                    <span>Shopping  Now</span>
                </div>
                <div class="kefu between">
                    <i class="iconfont icon-service"></i>
                    <span>Live Help</span>
                </div>
            </div>
        </div>
                <div id="product">
                                                                                                                                                                                                                                                                        <div class="product-option">
                    <div class="options-list">
                                                                                                                                                                            <div class="option-header" onclick="hideOptions(this)">item<span class="indexNum">1</span><span class="indexPrice">(PHp3,100</span>,
                                        <span class="selecting"></span>
                                        only465 left)
                                        <i class="iconfont icon-jiantouxia"></i>
                                    </div>
                                                                                                                                <div class="newRadio form-group">
                                    <label class="control-label optionName">Color</label>
                                    <div class="radio-box" id="input-option264">
                                                                                                                                    <div data-name="Color" class="radio"  data-changenum="0" data-changetype="+">
                                                    <label>
                                                        <input type="radio"
                                                               name="option[264]"
                                                               value="102"/>
                                                        <div class="option-name">
                                                            White
                                                                                                                    </div>
                                                    </label>
                                                </div>
                                                                                                                                                                                <div data-name="Color" class="radio"  data-changenum="0" data-changetype="+">
                                                    <label>
                                                        <input type="radio"
                                                               name="option[264]"
                                                               value="103"/>
                                                        <div class="option-name">
                                                            Rosegold
                                                                                                                    </div>
                                                    </label>
                                                </div>
                                                                                                                        </div>
                                </div>
                                                                                                                                                                                                                                                                                <div class="option-header" style="height: 0;border-bottom: 1px solid #eeeeee;"></div>
                    </div>
                </div>
                                    <div class="have-more">
                <div class="more-btn">
                    PHp3,100                </div>
            </div>
                        <div class="form-group buy-count">
                <label class="control-label" for="input-quantity">Qty:</label>
                <div class="change-number">
                    <i class="iconfont icon-jian" id="minus"></i>
                    <input type="text" name="quantity" value="1" size="2" id="input-quantity" disabled style="background-color: #fff;width: 30px;"/>
                    <i class="iconfont icon-jia" id="plus"></i>
                    <input type="hidden" name="product_id" value="85"/>
                </div>
                                                            </div>
                                    <div class="confirm-order">
                <div id="haveMoreDom"></div>

                <div>Total:<span id="countPrice" style="font-size: 17px;">PHp3,100</span></div>


                <input type="hidden" value="3100" disabled id="hiddenorder-money"
                       class="form-control hide-pay"/>
                <input type="hidden" value="3100" disabled id="order-money" class="form-control hide-pay"/>

            </div>
                        <div id="scrollBuy">
                <div class="panel-collapse " id="collapse-payment-address">
                    <script type="text/javascript"><!--

    //-->
</script>
<fieldset id="account">
        <div class="form-group" style="display:  none ;">
        <label class="control-label">Customer Group</label>
                                    <div class="radio">
                    <label>
                        <input autocomplete="off" type="radio" name="customer_group_id"
                               value="1" checked="checked"/>
                        Default</label>
                </div>
                    </div>
    <div class="form-group required flex-input">
        <label class="control-label" for="input-payment-firstname">Name:</label>
        <input autocomplete="off" type="text" name="firstname" value="" placeholder="Required Fill in the recipient's name"
               id="input-payment-firstname" class="form-control hide-pay"/>
    </div>
    <div class="form-group" style="display: none">
        <label class="control-label" for="input-payment-lastname">Last Name</label>
        <input autocomplete="off" type="text" name="lastname" value="" placeholder="Last Name"
               id="input-payment-lastname" class="form-control hide-pay"/>
    </div>
    <div class="form-group required flex-input">
        <label class="control-label" for="input-payment-telephone">Telephone</label>
        <input autocomplete="off" type="text" name="telephone" value=""
               placeholder="Required Fill in the recipient's contact number" id="input-payment-telephone" class="form-control hide-pay"/>
    </div>


    </fieldset>
<fieldset id="address">
        <div class="form-group" style="display: none;">
        <label class="control-label" for="input-payment-company">Company</label>
        <input autocomplete="off" type="text" name="company" value="" placeholder="Company"
               id="input-payment-company" class="form-control hide-pay"/>
    </div>
	
    <div class="form-group flex-input">
        <label class="control-label" for="input-payment-postcode">Post Code:</label>
        <input autocomplete="off" type="text" name="postcode" value="432" placeholder="Post Code"
               id="input-payment-postcode" class="form-control hide-pay"/>
    </div>
	
	
	<div class="form-group required flex-input">
                <label class="control-label" for="input-payment-countr">Delivery to Philippines</label>
        <div style="">
            
            <label class="control-label" for="input-payment-country" style="display: none;"></label>
            <select name="country_id" id="input-payment-country" class="form-control">
			  <option value=""> --- Please Select --- </option>
			  
			  
			 			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  <option value="168" selected="selected">Philippines</option>
			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			  			  
			  
			  			  
			  
			  			  			
			
			</select>
			
			
        </div>
    </div>
	<div class="form-group required">
        <label class="control-label" for="input-payment-zone">Region / State</label>
        <select name="zone_id" id="input-payment-zone" class="form-control">
        </select>
    </div>
    <div class="form-group required flex-input">
        <label style="line-height: 12px;" class="control-label" for="input-payment-address-1">Address</label>
        <input autocomplete="off" type="text" name="address_1" value="" placeholder="Required Street number"
               id="input-payment-address-1" class="form-control hide-pay"/>
    </div>
    <div class="form-group flex-input">
        <label class="control-label" for="input-payment-email">E-Mail</label>
        <input autocomplete="off" type="text" name="email" value="" placeholder="Not required  Fill in the recipient email"
               id="input-payment-email" class="form-control hide-pay"/>
    </div>
    <div class="form-group" style="display: none;">
        <label class="control-label" for="input-payment-address-2">Address 2</label>
        <input autocomplete="off" type="text" name="address_2" value=""
               placeholder="Address 2" id="input-payment-address-2" class="form-control hide-pay"/>
    </div>
    <div class="form-group" style="display: none;">
        <label class="control-label" for="input-payment-city">City</label>
        <input autocomplete="off" type="text" name="city" value="" placeholder="City"
               id="input-payment-city" class="form-control hide-pay"/>
    </div>

    
                            <div class="form-group leave-message flex-input" id="lessmessagesave" style="height: auto;">
        <label class="control-label" for="input-payment-guest">Add Comments About Your Order</label>
                <textarea name="comment" placeholder="Not required  Such as spare phone product specifications or delivery time" id="input-payment-guest" rows="4"
                  class="form-control"></textarea>
    </div>
    <div id="pay-div" class="get-pay">
                <svg width="28px" height="28px" version="1.1" style="margin-right: 10px;">
            <circle cx="14" cy="14" r="12" stroke="#007aff" stroke-width="2" fill="#ffffff" />
            <circle cx="14" cy="14" r="6" stroke-width="0" fill="#007aff" />
        </svg>
        Cash on delivery
        <img src="/ueditor/php/upload/image/images/cash.jpg" style="padding-left: 10px;">
    </div>
</fieldset>
<div class="checkbox" style="display: none">
    <div>
        <input autocomplete="off" type="radio" id="shoppingSameAddress" name="shoppingsameaddress" value="shopping"
               checked="checked"/>
        <label for="shoppingSameAddress">My delivery and billing addresses are the same.</label>
    </div>
    <div>
        <input autocomplete="off" type="radio" id="shoppingDifferentAddress" name="shoppingsameaddress"
               value="shoppingdifferent"/>
        <label for="shoppingDifferentAddress">I want to use a new address</label>
    </div>
</div>
<div class="buttons-set" style="clear: both;
    margin: 0;
    padding: 5px;">
    <p class="required" style="color: #ff0000;
    font-size: 11px;
    font-weight: bold;
    text-align: right;
    display: none">* 為必填項</p>
</div>
<script type="text/javascript"><!--

    $('input[name=\'shoppingsameaddress\']').on('change', function () {
        if (this.value == 'shoppingdifferent') {
            $('#collapse-shipping-address').show();
        } else {
            $('#collapse-shipping-address').hide();
        }
    });

    // Sort the custom fields
    $('#account .form-group[data-sort]').detach().each(function () {
        if ($(this).attr('data-sort') >= 0 && $(this).attr('data-sort') <= $('#account .form-group').length) {
            $('#account .form-group').eq($(this).attr('data-sort')).before(this);
        }

        if ($(this).attr('data-sort') > $('#account .form-group').length) {
            $('#account .form-group:last').after(this);
        }

        if ($(this).attr('data-sort') == $('#account .form-group').length) {
            $('#account .form-group:last').after(this);
        }

        if ($(this).attr('data-sort') < -$('#account .form-group').length) {
            $('#account .form-group:first').before(this);
        }
    });

    $('#address .form-group[data-sort]').detach().each(function () {
        if ($(this).attr('data-sort') >= 0 && $(this).attr('data-sort') <= $('#address .form-group').length) {
            $('#address .form-group').eq($(this).attr('data-sort')).before(this);
        }

        if ($(this).attr('data-sort') > $('#address .form-group').length) {
            $('#address .form-group:last').after(this);
        }

        if ($(this).attr('data-sort') == $('#address .form-group').length) {
            $('#address .form-group:last').after(this);
        }

        if ($(this).attr('data-sort') < -$('#address .form-group').length) {
            $('#address .form-group:first').before(this);
        }
    });

    $('#collapse-payment-address input[name=\'customer_group_id\']').on('change', function () {
        $.ajax({
            url: 'index.php?route=checkout/checkout/customfield&customer_group_id=' + this.value,
            dataType: 'json',
            success: function (json) {
                $('#collapse-payment-address .custom-field').hide();
                $('#collapse-payment-address .custom-field').removeClass('required');

                for (i = 0; i < json.length; i++) {
                    custom_field = json[i];

                    $('#payment-custom-field' + custom_field['custom_field_id']).show();

                    if (custom_field['required']) {
                        $('#payment-custom-field' + custom_field['custom_field_id']).addClass('required');
                    } else {
                        $('#payment-custom-field' + custom_field['custom_field_id']).removeClass('required');
                    }
                }
            },
            error: function (xhr, ajaxOptions, thrownError) {
                alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
            }
        });
    });

    $('#collapse-payment-address input[name=\'customer_group_id\']:checked').trigger('change');
    //--></script>
<script type="text/javascript"><!--
    $('#collapse-payment-address button[id^=\'button-payment-custom-field\']').on('click', function () {
        var node = this;

        $('#form-upload').remove();

        $('body').prepend('<form enctype="multipart/form-data" id="form-upload" style="display: none;"><input autocomplete="off" type="file" name="file" /></form>');

        $('#form-upload input[name=\'file\']').trigger('click');

        if (typeof timer != 'undefined') {
            clearInterval(timer);
        }

        timer = setInterval(function () {
            if ($('#form-upload input[name=\'file\']').val() != '') {
                clearInterval(timer);

                $.ajax({
                    url: 'index.php?route=tool/upload',
                    type: 'post',
                    dataType: 'json',
                    data: new FormData($('#form-upload')[0]),
                    cache: false,
                    contentType: false,
                    processData: false,
                    beforeSend: function () {
                        $(node).button('loading');
                    },
                    complete: function () {
                        $(node).button('reset');
                    },
                    success: function (json) {
                        $(node).parent().find('.text-danger').remove();

                        if (json['error']) {
                            $(node).parent().find('input[name^=\'custom_field\']').after('<div class="text-danger">' + json['error'] + '</div>');
                        }

                        if (json['success']) {
                            alert(json['success']);

                            $(node).parent().find('input[name^=\'custom_field\']').val(json['code']);
                        }
                    },
                    error: function (xhr, ajaxOptions, thrownError) {
                        alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
                    }
                });
            }
        }, 500);
    });
    //--></script>
<script type="text/javascript"><!--

    //--></script>
<script type="text/javascript">
    $('#collapse-payment-address select[name=\'country_id\']').on('change', function() {
	$.ajax({
		url: 'index.php?route=checkout/checkout/country&country_id=' + this.value,
		dataType: 'json',
		beforeSend: function() {
			$('#collapse-payment-address select[name=\'country_id\']').prop('disabled', true);
		},
		complete: function() {
			$('#collapse-payment-address select[name=\'country_id\']').prop('disabled', false);
		},
		success: function(json) {
			if (json['postcode_required'] == '1') {
				$('#collapse-payment-address input[name=\'postcode\']').parent().parent().addClass('required');
			} else {
				$('#collapse-payment-address input[name=\'postcode\']').parent().parent().removeClass('required');
			}

			html = '<option value=""> --- Please Select --- </option>';

			if (json['zone'] && json['zone'] != '') {
				for (i = 0; i < json['zone'].length; i++) {
					html += '<option value="' + json['zone'][i]['zone_id'] + '"';

					if (json['zone'][i]['zone_id'] == '2552') {
						html += ' selected="selected"';
					}

					html += '>' + json['zone'][i]['name'] + '</option>';
				}
			} else {
				html += '<option value="0" selected="selected"> --- None --- </option>';
			}

			$('#collapse-payment-address select[name=\'zone_id\']').html(html);
		},
		error: function(xhr, ajaxOptions, thrownError) {
			alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
		}
	});
});

$('#collapse-payment-address select[name=\'country_id\']').trigger('change');
   </script>
<script>
   
</script>
                </div>
                    <div class="table-responsive hidden">
        <table class="table table-bordered table-hover">
            <thead>
            <tr>
                <td class="text-left">Product Name</td>
                <td class="text-left hidden">Model</td>
                <td class="text-right">Quantity</td>
                <td class="text-right hidden">Unit Price</td>
                <td class="text-right">Total</td>
            </tr>
            </thead>
            <tbody>

                                    </tbody>

            <tfoot>

                            <tr>
                    <td colspan="2" class="text-right"><strong>Sub-Total:</strong></td>
                    <td class="text-right">PHp0</td>
                </tr>
                            <tr>
                    <td colspan="2" class="text-right"><strong>Total:</strong></td>
                    <td class="text-right">PHp0</td>
                </tr>
                        </tfoot>

        </table>
    </div>
            <div class="order-sure" style="display: none">
            <span class="order-title">Sub-Total:</span>
            <span class="order-num">PHp0</span>
        </div>
            <div class="order-sure" style="display: none">
            <span class="order-title">Total:</span>
            <span class="order-num">PHp0</span>
        </div>
        <div class="buttons" id="setOrder" style="display: none">
    <input type="button" value="Confirm Order" id="button-confirm" data-loading-text="Loading..." class="pay-btn" />
</div>
<script>
  $('.btn-find').on('click',function () {
      window.location.href = '/query.html'
  })
</script>


<script type="text/javascript">
    $('#button-confirm-mobile').on('click',function () {
        $('#button-confirm').click();
    })
</script>
<script type="text/javascript"><!--
//$('#button-confirm').on('click', function() {
//});
$('#button-confirm--').on('click', function() {

    $.ajax({
        url: 'index.php?route=checkout/guest/savehebing',
        type: 'post',
        data: $('#collapse-payment-address input[type=\'text\'], #collapse-payment-address input[type=\'date\'], #collapse-payment-address input[type=\'datetime-local\'], #collapse-payment-address input[type=\'time\'], #collapse-payment-address input[type=\'checkbox\']:checked, #collapse-payment-address input[type=\'radio\']:checked, #collapse-payment-address input[type=\'hidden\'], #collapse-payment-address textarea, #collapse-payment-address select,#lessmessagesave textarea'),
        dataType: 'json',
        beforeSend: function() {
            $("#button-confirm-mobile").attr('disabled',true);
           
            $("#button-confirm").attr('disabled',true);
        },
        complete: function() {
            //$("#button-confirm-mobile").attr('disabled',false);
            //$("#button-confirm").attr('disabled',false);
        },
        success: function(json) {
            
            if (json['redirect']) {
                location = json['redirect'];
            } else if (json['error']) {
                var elementnoteo='';
				for (i in json['error']) {
					var element = $('#input-payment-' + i.replace('_', '-'));
                    if(!elementnoteo){
					   elementnoteo=element;
					   if ($(element).parent().hasClass('input-group')) {
					        if ($(element).parent().children().hasClass('text-danger')) {
						     $('.text-danger').remove();
							}
							$(element).parent().after('<div class="text-danger">' + json['error'][i] + '</div>');
						} else {
						    if ($(element).parent().children().hasClass('text-danger')) {
						     $('.text-danger').remove();
							}
							$(element).parent().after('<div class="text-danger">' + json['error'][i] + '</div>');
						}
						 // window.location.hash = "#"+elementnoteo.attr("id");
                        $(window).scrollTop(element.offset().top-75);
					}
					
				}
				$("#button-confirm-mobile").attr('disabled',false);
                $("#button-confirm").attr('disabled',false);
				//console.log(element.attr("id"));
               
				// Highlight any found errors
				$('.text-danger').parent().addClass('has-error');
            } else {
                
                var shoppingsameaddress = $('#collapse-payment-address input[name=\'shoppingsameaddress\']:checked').val();
				if(shoppingsameaddress=='shoppingdifferent'){
				    console.log(shoppingsameaddress);
				    savegshoping();  
				}else{
				   savegpaddess();
				}
                 
                
            }
        },
        error: function(xhr, ajaxOptions, thrownError) {
            alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
        }
    });
	
});

function savegpaddess(){
    var shipping_address = $('#collapse-payment-address input[name=\'shipping_address\']:checked').prop('value');

	if (!shipping_address) {
		$.ajax({
			url: 'index.php?route=checkout/shipping_method_hebing',
			dataType: 'html',
            beforeSend: function() {
                $("#button-confirm-mobile").attr('disabled',true);
                $("#button-confirm").attr('disabled',true);
            },
            complete: function() {
                //$("#button-confirm-mobile").attr('disabled',false);
                //$("#button-confirm").attr('disabled',false);
            },
			success: function(html) {
					// Add the shipping address
					$.ajax({
						url: 'index.php?route=checkout/payment_method_hebing',
						dataType: 'html',
						complete: function() {
							///$('#button-guest').button('reset');
						},
						success: function(html) {
							$('#collapse-payment-method .panel-body').html(html);
							///////
							$.ajax({
								url: 'index.php?route=checkout/confirm_he',
								dataType: 'html',
							   
								success: function(html) {
									//$('#collapse-checkout-confirm .panel-body').html(html);
									
									$.ajax({
										url: 'index.php?route=extension/payment/cod/confirm',
										dataType: 'json',
										beforeSend: function() {
											$('#button-confirm').button('loading');
										},
										complete: function() {
											$('#button-confirm').button('reset');
										},
										success: function(json) {
											if (json['redirect']) {
												location = json['redirect'];	
											}
										},
										error: function(xhr, ajaxOptions, thrownError) {
											alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
										}
									});

								},
								error: function(xhr, ajaxOptions, thrownError) {
									alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
								}
							});
							///////
							
							
							
						},
						error: function(xhr, ajaxOptions, thrownError) {
							alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
						}
					});

				//$('#collapse-shipping-method .panel-body').html(html);


				//$('#collapse-payment-method').parent().find('.panel-heading .panel-title').html('Step %s: Payment Method');
				//$('#collapse-checkout-confirm').parent().find('.panel-heading .panel-title').html('Step %s: Confirm Order');
			},
			error: function(xhr, ajaxOptions, thrownError) {
				alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
				$("#button-confirm-mobile").attr('disabled',false);
                $("#button-confirm").attr('disabled',false);
			}
		});
	}
}
function savegshoping(){
    $.ajax({
        url: 'index.php?route=checkout/guest_shipping/savehebingdif',
        type: 'post',
        data: $('#collapse-shipping-address input[type=\'text\'], #collapse-shipping-address input[type=\'date\'], #collapse-shipping-address input[type=\'datetime-local\'], #collapse-shipping-address input[type=\'time\'], #collapse-shipping-address input[type=\'password\'], #collapse-shipping-address input[type=\'checkbox\']:checked, #collapse-shipping-address input[type=\'radio\']:checked, #collapse-shipping-address textarea, #collapse-shipping-address select'),
        dataType: 'json',
        beforeSend: function() {
            $("#button-confirm-mobile").attr('disabled',true);
            $("#button-confirm").attr('disabled',true);
        },
        complete: function() {
            //$("#button-confirm-mobile").attr('disabled',false);
           // $("#button-confirm").attr('disabled',false);
        },
        success: function(json) {
            $('.alert-dismissible, .text-danger').remove();
			$('.form-group').removeClass('has-error');

            if (json['redirect']) {
                location = json['redirect'];
            } else if (json['error']) {
                $('#button-guest-shipping').button('reset');

                if (json['error']['warning']) {
                   // $('#collapse-shipping-address .panel-body').prepend('<div class="alert alert-danger alert-dismissible">' + json['error']['warning'] + '<button type="button" class="close" data-dismiss="alert">&times;</button></div>');
                }
                var elementnote='';
				for (i in json['error']) {
					var element = $('#input-shipping-' + i.replace('_', '-'));
                    if(!elementnote){
					
					   elementnote=element;
					   
					}
					if ($(element).parent().hasClass('input-group')) {
					    if ($(element).parent().children().hasClass('text-danger')) {
						 $('.text-danger').remove();
						}
						$(element).parent().after('<div class="text-danger">' + json['error'][i] + '</div>');
					} else {
					     if ($(element).parent().children().hasClass('text-danger')) {
						 $('.text-danger').remove();
						}
						$(element).after('<div class="text-danger">' + json['error'][i] + '</div>');
					}
					window.location.hash = "#"+elementnote.attr("id");
				}
				
				$("#button-confirm-mobile").attr('disabled',false);
                $("#button-confirm").attr('disabled',false);
                
				// Highlight any found errors
				$('.text-danger').parent().addClass('has-error');
            } else {
			    savegpaddess();
                
            }
        },
        error: function(xhr, ajaxOptions, thrownError) {
            alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
        }
    });


}
//--></script>

<script>
    $(function () {
        // $('.order-sure').last().find('.order-title').css('color', '#212121');
        // $('.order-sure').last().find('.order-num').css('color', '#ff5722');
        // $('.order-sure').last().show();
    })
</script>
            </div>
                        <div class="tip">
                Tips: support cash on delivery + free postage + seven days no reason to return! If you have any questions after receiving the goods, please contact our online customer service or send an email to
                <a href="mailto:service@ppizy.com" style="color:#F8770E">service@ppizy.com</a>
            </div>
        </div>
    </div>
    <input type="hidden" id="home_date_now" value="1536304231">
    <input type="hidden" id="home_date_end" value="">
    <input type="hidden" id="max_buy" value="1">
</div>
<script>
    $(function () {
        countdown($('#home_date_now').val(), $('#home_date_end').val());
        hideD();
        haveMore();
        videoWidth();
    });
    // 视频标签自适应宽度
    function videoWidth() {
        $('.description').find('video').attr('width','100%;');
    }
    // 判斷是否有贈品
    function haveMore() {
        var have = '<span id="countNumber" data-num="1">2</span>pieces in total，including<span>1</span>gift';
        var haveNot = '<span id="countNumber" data-num="0">1</span>pieces in total';
        if($('input[name=haveMore]').val() == undefined){
            $('#haveMoreDom').html(haveNot);
        }else {
            $('#haveMoreDom').html(have);
        }
    }
    // 倒计时
    function countdown(startTime, endTime) {
        var allTime = endTime - startTime;
        var timer = setInterval(function () {
            if (allTime <= 0) {
                $('#countdown').empty();
                clearInterval(timer);
                return false;
            }
            var h = Math.floor(allTime / 3600);
            var m = Math.floor((allTime % 3600) / 60);
            var s = (allTime % 3600) % 60;
            if (h > 99) {
                h = 99;
            }
            if (h < 10) {
                h = '0' + h;
            }
            if (m < 10) {
                m = '0' + m;
            }
            if (s < 10) {
                s = '0' + s;
            }
            var tag = 'flash sale<span class="kill-number">' + h + '</span>:<span class="kill-number">' + m + '</span>:<span class="kill-number">' + s + '</span>';
            $('#countdown').html(tag);
            allTime--;
        }, 1000)
    }
    // 吸頂
    var goodsTitleTop = $('#nav').offset().top;
    window.onscroll = function () {
        if ($(window).scrollTop() >= goodsTitleTop) {
            $('#nav').addClass('position-fixed');
            $('#goods-info').css('margin-top', '36px');
        } else {
            $('#nav').removeClass('position-fixed');
            $('#goods-info').css('margin-top', '0');
        }
        // 隐藏滚动购买按钮
        // if($('#product').offset().top <= $(document).scrollTop()){
        //     $('.bottom-btn').hide();
        // }else {
        //     $('.bottom-btn').show();
        // }
    };
    // 點擊導航
    $('#toInfo').on('click', function () {
        $('html,body').stop().animate({scrollTop: $('#goods-info').offset().top - 36}, 500);
    });
    $('#toGuige').on('click', function () {
        $('html,body').stop().animate({scrollTop: $('#goods-guige').offset().top - 36}, 500);
    });
    $('#toMessage').on('click', function () {
        $('html,body').stop().animate({scrollTop: $('#message').offset().top - 36}, 500);
    });
    // 評論輪播
    var timer = setInterval(function () {
        if ($('#review div.one-ul')[0] === undefined) {
            return;
        }
        if ($('#messageBox')[0].scrollTop >= $('#review div.one-ul')[0].offsetHeight) {
            $('#messageBox')[0].scrollTop = 0;
        }
        else {
            $('#messageBox')[0].scrollTop++;
        }
    }, 35);
    $('#messageBox').on('click', function () {

    });
    // 點擊第一件
    function hideOptions(_this) {
        $(_this).nextUntil('.option-header').toggle(300);
        if ($(_this).find('.iconfont').hasClass('icon-jiantouxia')) {
            $(_this).find('.iconfont').removeClass('icon-jiantouxia').addClass('icon-jiantoushang')
        } else {
            $(_this).find('.iconfont').removeClass('icon-jiantoushang').addClass('icon-jiantouxia')
        }
    }
</script>
<script>
    // // 点赞
    $('#getLikeA').on('click', function () {
        // console.log($('#getLikea').find('iframe')[0].contentWindow);
    });
    // 点击蒙板空白区域
    $('.mask').on('click', function () {
        $('body').css('overflow', 'visible');
        $('.product-header').css('z-index', '0');
        $('.mask').stop().hide();
        $('.more-list').stop().slideUp(100);
        $('.coupons-module').stop().slideUp(300);
        $('#product').stop().slideUp(300);
        $('.integral-module').stop().slideUp(300);
        $('#form-review').stop().slideUp(300);
        $('.commitment-module').stop().slideUp(300);
    });
    // 评论蒙板
    $('#writeMessage').on('click', function () {
        $('.mask').stop().show();
        $('#form-review').stop().slideDown(300);
        $('body').css('overflow', 'hidden');
        $('#product-product #form-review .stars').html(
            '<label><span class="star fa fa-stack"><i class="star fa fa-star-o fa-stack-1x"></i></span><input type="radio" name="rating" value="1"/></label>' +
            '<label><span class="star fa fa-stack"><i class="star fa fa-star-o fa-stack-1x"></i></span><input type="radio" name="rating" value="2"/></label>' +
            '<label><span class="star fa fa-stack"><i class="star fa fa-star-o fa-stack-1x"></i></span><input type="radio" name="rating" value="3"/></label>' +
            '<label><span class="star fa fa-stack"><i class="star fa fa-star-o fa-stack-1x"></i></span><input type="radio" name="rating" value="4"/></label>' +
            '<label><span class="star fa fa-stack"><i class="star fa fa-star-o fa-stack-1x"></i></span><input type="radio" name="rating" value="5"/></label>'
        );
    });
    $('.close-write').on('click', function () {
        $('.mask').stop().hide();
        $('#form-review').stop().slideUp(300);
        $('body').css('overflow', 'visible');
    });

    // 规格蒙板
    $('.bottom-btn>.cart').on('click', function () {
        window.location.href = '/query.html'
    });
    $('.bottom-btn>.buy').on('click', function () {
        // $('#product').stop().show();
        // $('.product-content').stop().hide();
        // $('body,html').scrollTop(0);
        // $('html,body').stop().animate({scrollTop: $('#scrollBuy').offset().top}, 500);
        console.log($('#button-confirm'));
        $('#button-confirm').click();
    });
    $('#closeProduct').on('click', function () {
        $('#product').stop().hide();
        $('.product-content').stop().show();
        $('body,html').scrollTop(0);
    });
    // 选择规格
    $('#product-product #product .newRadio .radio-box .radio').on('click', function () {
        $(this).siblings().find('label').removeClass('radio-selected');
        $(this).find('label').addClass('radio-selected');
        if ($(this).parents('.newRadio').prev().hasClass('option-header')) {
            $(this).parents('.newRadio').prev().attr('data-id' + $(this).parent().attr('id').replace('input-option', ''), $(this).text().replace(/^\s\s*/, '').replace(/\s\s*$/, ''))
            $(this).parents('.newRadio').prev().find('.selecting').text(getValue($(this).parents('.newRadio').prev()[0].dataset))
        } else {
            $(this).parents('.newRadio').prevUntil('.option-header').prev().attr('data-id' + $(this).parent().attr('id').replace('input-option', ''), $(this).text().replace(/^\s\s*/, '').replace(/\s\s*$/, ''))
            $(this).parents('.newRadio').prevUntil('.option-header').prev().find('.selecting').text(getValue($(this).parents('.newRadio').prevUntil('.option-header').prev()[0].dataset))
        }
        if($(this)[0].dataset.name.substr($(this)[0].dataset.name.length-3) === '$$$'){
            var initPrice = Number($('#initPrice').text().replace(/[^\d.]/g,''));
            var moneyType = $('#initPrice').text().replace(/[\d.,]/g,'');
            var changeType = $(this)[0].dataset.changetype;
            var changeNum = Number($(this)[0].dataset.changenum.replace(/[^\d.]/g,''));
            var multiple = $('input[name=quantity]').val();
            var res = '';
            if(changeType == '+'){
                res = initPrice + changeNum;
            }else if(changeType == '-'){
                res = initPrice - changeNum;
            }
            $('#hiddenorder-money').val(res);
            res = res * multiple;
            res = res.toFixed(2);
            if('PHp'){
                res = moneyType + res;
            }else if(''){
                res = res + moneyType
            }
            $('#countPrice').text(res);
        }
    });
    $('#product-product #product .newRadio .radio-box .img-radio').on('click', function () {
        $(this).siblings().find('label').removeClass('radio-selected');
        $(this).find('label').addClass('radio-selected');
        if ($(this).parents('.newRadio').prev().hasClass('option-header')) {
            $(this).parents('.newRadio').prev().attr('data-id' + $(this).parent().attr('id').replace('input-option', ''), $(this).text().replace(/^\s\s*/, '').replace(/\s\s*$/, ''))
            $(this).parents('.newRadio').prev().find('.selecting').text(getValue($(this).parents('.newRadio').prev()[0].dataset))
        } else {
            $(this).parents('.newRadio').prevUntil('.option-header').prev().attr('data-id' + $(this).parent().attr('id').replace('input-option', ''), $(this).text().replace(/^\s\s*/, '').replace(/\s\s*$/, ''))
            $(this).parents('.newRadio').prevUntil('.option-header').prev().find('.selecting').text(getValue($(this).parents('.newRadio').prevUntil('.option-header').prev()[0].dataset))
        }
        if($(this)[0].dataset.name.substr($(this)[0].dataset.name.length-3) === '$$$'){
            var initPrice = Number($('#initPrice').text().replace(/[^\d.]/g,''));
            var moneyType = $('#initPrice').text().replace(/[\d.,]/g,'');
            var changeType = $(this)[0].dataset.changetype;
            var changeNum = Number($(this)[0].dataset.changenum.replace(/[^\d.]/g,''));
            var multiple = $('input[name=quantity]').val();
            var res = '';
            if(changeType == '+'){
                res = initPrice + changeNum;
            }else if(changeType == '-'){
                res = initPrice - changeNum;
            }
            $('#hiddenorder-money').val(res);
            res = res * multiple;
            res = res.toFixed(2);
            if('PHp'){
                res = moneyType + res;
            }else if(''){
                res = res + moneyType
            }
            $('#countPrice').text(res);
        }
    });
    function getValue(data) {
        var result = 'selected ';
        for (var i in data) {
            result += data[i] + ' ';
        }
        return result;
    }
    // 隱藏$$$
    function hideD() {
        var dom = $('.optionName');
        for (var i = 0; i < dom.length; i++) {
            if($(dom[i]).text().substr($(dom[i]).text().length-3) === '$$$' || $(dom[i]).text().substr($(dom[i]).text().length-3) === '###'){
                $(dom[i]).text($(dom[i]).text().slice(0, $(dom[i]).text().length-3))
            }
        }
    }
    // 加减
    var ordermoney = $('#countPrice');
    var getSymbolLeft = 'PHp';
    var getSymbolRight = '';
    var maxBuy = $('#max_buy').val();
    $('#minus').on('click', function () {
        var hiddenorder = Number($('#hiddenorder-money').val());
        var count = $('#product-product #product .buy-count .change-number input[name=quantity]').val();
        count--;
        if (count <= 1) {
            count = 1;
        }
        $('#product-product #product .buy-count .change-number input[name=quantity]').val(count);
        $('#countNumber').text(count + parseInt($('#countNumber')[0].dataset.num));
        if (getSymbolRight) {
            ordermoney.text((hiddenorder * count).toFixed(2) + getSymbolRight);
        } else if (getSymbolLeft) {
            ordermoney.text(getSymbolLeft + (hiddenorder * count).toFixed(2));
        } else {
            ordermoney.text((hiddenorder * count).toFixed(2));
        }
    });
    $('#plus').on('click', function () {
        var hiddenorder = Number($('#hiddenorder-money').val());
        var count = $('#product-product #product .buy-count .change-number input[name=quantity]').val();
        count++;
        if(maxBuy !== ''){
            if (count > maxBuy) {
                $('#tipModule').text('The  product purchase restrictions'+ maxBuy + 'pieces！').show();
                setTimeout(function () {
                    $('#tipModule').text('').hide();
                }, 1500);
                count = maxBuy;
                return false;
            }
        }
        $('#product-product #product .buy-count .change-number input[name=quantity]').val(count);
        $('#countNumber').text(count + parseInt($('#countNumber')[0].dataset.num));
        if (getSymbolRight) {
            ordermoney.text((hiddenorder * count).toFixed(2) + getSymbolRight);
        } else if (getSymbolLeft) {
            ordermoney.text(getSymbolLeft + (hiddenorder * count).toFixed(2));
        } else {
            ordermoney.text((hiddenorder * count).toFixed(2));
        }
    });
    // 【限時特惠】再來兩件，僅需NT$300
    $('.more-btn').on('click', function () {
        //$('#plus').click();
    });
    // 選擇評論的星星數
    $('#product-product #form-review .stars').on('click', 'input[name=rating]', function () {
        var value = $('#product-product #form-review .stars input[name=rating]:checked').val();
        var unselect = '<span class="star fa fa-stack"><i class="star fa fa-star-o fa-stack-1x"></i></span>';
        var selected = '<span class="star fa fa-stack"><i class="star fa fa-star fa-stack-1x"></i><i class="star fa fa-star-o fa-stack-1x"></i></span>'
        var tag = '';
        for (var i = 1; i <= 5; i++) {
            tag += '<label>';
            if (i <= value) {
                tag += selected;
            } else {
                tag += unselect;
            }
            if (i == value) {
                tag += '<input type="radio" name="rating" checked value="' + i + '"/>';
            } else {
                tag += '<input type="radio" name="rating" value="' + i + '"/>';
            }
            tag += '</label>';
        }
        $('#product-product #form-review .stars').html(tag);
    });
    // 点击评论滚动页面
    $('#toComments').on('click', function () {
        $('html,body').stop().animate({scrollTop: $('#message')[0].offsetTop}, 500);
    })
    // 複製折扣碼
    $('.copyCode').on('click', function () {
        var dom = $(this).siblings('.codeIn').find('input')[0];
        dom.select();
        document.execCommand("Copy");
        $('#tipModule').text('複製成功！').show();
        setTimeout(function () {
            $('#tipModule').text('').hide();
        }, 1500);
        $('.coupons-footer').click();
    })
</script>
<script type="text/javascript"><!--
    $('select[name=\'recurring_id\'], input[name="quantity"]').change(function () {
        $.ajax({
            url: 'index.php?route=product/product/getRecurringDescription',
            type: 'post',
            data: $('input[name=\'product_id\'], input[name=\'quantity\'], select[name=\'recurring_id\']'),
            dataType: 'json',
            beforeSend: function () {
                $('#recurring-description').html('');
            },
            success: function (json) {
                $('.alert-dismissible, .text-danger').remove();

                if (json['success']) {
                    $('#recurring-description').html(json['success']);
                }
            }
        });
    });
    //--></script>
<script type="text/javascript"><!--
    $('#button-cart').on('click', function () {
        $.ajax({
            url: 'index.php?route=checkout/cart/add',
            type: 'post',
            data: $('#product input[type=\'text\'], #product input[type=\'hidden\'], #product input[type=\'radio\']:checked, #product input[type=\'checkbox\']:checked, #product select, #product textarea'),
            dataType: 'json',
            beforeSend: function () {
                $('#button-cart').button('loading');
            },
            complete: function () {
                $('#button-cart').button('reset');
            },
            success: function (json) {
                $('.alert-dismissible, .text-danger').remove();
                $('.form-group').removeClass('has-error');

                if (json['error']) {
                    if (json['error']['option']) {
                        for (i in json['error']['option']) {
                            var element = $('#input-option' + i.replace('_', '-'));

                            if (element.parent().hasClass('input-group')) {
                                element.parent().after('<div class="text-danger">' + json['error']['option'][i] + '</div>');
                            } else {
                                element.after('<div class="text-danger">' + json['error']['option'][i] + '</div>');
                            }
                        }
                    }

                    if (json['error']['recurring']) {
                        $('select[name=\'recurring_id\']').after('<div class="text-danger">' + json['error']['recurring'] + '</div>');
                    }
                    if (json['error']['hasadd']) {
                        alert('您已添加該產品');
                    }

                    // Highlight any found errors
                    $('.text-danger').parent().addClass('has-error');
                }

                if (json['success']) {
                    $('.breadcrumb').after('<div class="alert alert-success alert-dismissible">' + json['success'] + '<button type="button" class="close" data-dismiss="alert">&times;</button></div>');

                    $('#cart > button').html('<span id="cart-total"><i class="fa fa-shopping-cart"></i> ' + json['total'] + '</span>');

                    $('html, body').animate({scrollTop: 0}, 'slow');
                    window.location.href = "checkout_cart.html";
                    $('#cart > ul').load('index.php?route=common/cart/info ul li');
                }
            },
            error: function (xhr, ajaxOptions, thrownError) {
                alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
            }
        });
    });
    //--></script>
<script type="text/javascript"><!--
    $('.date').datetimepicker({
        language: 'en-gb',
        pickTime: false
    });

    $('.datetime').datetimepicker({
        language: 'en-gb',
        pickDate: true,
        pickTime: true
    });

    $('.time').datetimepicker({
        language: 'en-gb',
        pickDate: false
    });

    $('button[id^=\'button-upload\']').on('click', function () {
        var node = this;

        $('#form-upload').remove();

        $('body').prepend('<form enctype="multipart/form-data" id="form-upload" style="display: none;"><input type="file" name="file" /></form>');

        $('#form-upload input[name=\'file\']').trigger('click');

        if (typeof timer != 'undefined') {
            clearInterval(timer);
        }

        timer = setInterval(function () {
            if ($('#form-upload input[name=\'file\']').val() != '') {
                clearInterval(timer);

                $.ajax({
                    url: 'index.php?route=tool/upload',
                    type: 'post',
                    dataType: 'json',
                    data: new FormData($('#form-upload')[0]),
                    cache: false,
                    contentType: false,
                    processData: false,
                    beforeSend: function () {
                        $(node).button('loading');
                    },
                    complete: function () {
                        $(node).button('reset');
                    },
                    success: function (json) {
                        $('.text-danger').remove();

                        if (json['error']) {
                            $(node).parent().find('input').after('<div class="text-danger">' + json['error'] + '</div>');
                        }

                        if (json['success']) {
                            alert(json['success']);

                            $(node).parent().find('input').val(json['code']);
                        }
                    },
                    error: function (xhr, ajaxOptions, thrownError) {
                        alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
                    }
                });
            }
        }, 500);
    });
    //--></script>
<script type="text/javascript"><!--
    $('#review').delegate('.pagination a', 'click', function (e) {
        e.preventDefault();

        $('#review').fadeOut('slow');

        $('#review').load(this.href);

        $('#review').fadeIn('slow');
    });

    $('#review').load('index.php?route=product/product/review&product_id=85');

    $('#button-review').on('click', function () {
        $.ajax({
            url: 'index.php?route=product/product/write&product_id=85',
            type: 'post',
            dataType: 'json',
            data: $("#form-review").serialize(),
            beforeSend: function () {
                $('#button-review').button('loading');
            },
            complete: function () {
                $('#button-review').button('reset');
                $('.mask').click();
            },
            success: function (json) {
                $('.alert-dismissible').remove();

                if (json['error']) {
                    $('#tipModule').text(json['error']).show();
                    setTimeout(function () {
                        $('#tipModule').text('').hide();
                    }, 1500);
                    // $('#review').after('<div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> ' + json['error'] + '</div>');
                }

                if (json['success']) {
                    $('#tipModule').text(json['success']).show();
                    setTimeout(function () {
                        $('#tipModule').text('').hide();
                    }, 1500);
                    // $('#review').after('<div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> ' + json['success'] + '</div>');

                    $('input[name=\'name\']').val('');
                    $('textarea[name=\'text\']').val('');
                    $('input[name=\'rating\']:checked').prop('checked', false);
                }
            }
        });
    });

    $(document).ready(function () {
        $('.thumbnails').magnificPopup({
            type: 'image',
            delegate: 'a',
            gallery: {
                enabled: true
            }
        });
    });


    $(function () {

        $(".praise").click(function () {

            var praise = $(this);

            var product_id = praise.attr("rel"); //获取HTML页面POST过来的article_id

            var cat_id = praise.attr("rev"); //获取HTML页面POST过来的cat_id

            $.ajax({

                type: "POST",

                url: "http://liyifuuen.dr/index.php?route=product/product/praise&amp;product_id=85",

                data: "product_id=" + product_id + "&cat_id=" + cat_id,//数据拼接

                cache: false, //不缓存此页面

                success: function (data) {
                    if (data.mesage == '點贊成功') {
                        praise.html('<i class="iconfont icon-zan">贊</i>' + data.num); //显示data并局部刷新
                        alert(data.mesage);
                    } else {

                        alert(data.mesage);
                    }


                },
                error: function () {

                    alert("error");

                }

            });

        });

    });
    //--></script><script type="text/javascript"><!--
    $('#button-confirm').on('click', function () {

        guestsavehebing();
    });

    function cartadd() {
        $.ajax({
            url: 'index.php?route=checkout/cart/add',
            type: 'post',
            data: $('#product input[type=\'text\'], #product input[type=\'hidden\'], #product input[type=\'radio\']:checked, #product input[type=\'checkbox\']:checked, #product select, #product textarea'),
            dataType: 'json',
            beforeSend: function () {
                //$("#button-confirm-mobile").attr('disabled',true);
                $("#button-confirm").attr('disabled', true);
            },
            complete: function () {
                //$("#button-confirm-mobile").attr('disabled',false);

            },
            success: function (json) {
                $('.alert-dismissible, .text-danger').remove();
                $('.form-group').removeClass('has-error');

                if (json['error']) {
                    console.log(json.error);
                    if (json['error']['option']) {
                        var elementnoteop = '';
                        for (i in json['error']['option']) {
                            var element = $('#input-option' + i.replace('_', '-'));
                            var elements = $('#input-options' + i.replace('_', '-'));
                            if (!elementnoteop) {
                                elementnoteop = element;
                                if (element.parent().hasClass('input-group')) {
                                    // if ($(element).parent().children().hasClass('text-danger')) {
                                        $('.text-danger').remove();
                                    // }
                                    element.parent().after('<div class="text-danger">' + json['error']['option'][i] + '</div>');
                                    $('#tipModule').text(json['error']['option'][i]).show();
                                    setTimeout(function () {
                                        $('#tipModule').text('').hide();
                                    }, 1500);
                                    // window.location.hash = "#" + elements.attr("id");
                                    $(window).scrollTop(element.offset().top - 80);
                                } else {
                                    // if ($(element).parent().children().hasClass('text-danger')) {
                                        $('.text-danger').remove();
                                    // }
                                    element.after('<div class="text-danger">' + json['error']['option'][i] + '</div>');
                                    $('#tipModule').text(json['error']['option'][i]).show();
                                    setTimeout(function () {
                                        $('#tipModule').text('').hide();
                                    }, 1500);
                                    // window.location.hash = "#" + elements.attr("id");
                                    $(window).scrollTop(element.offset().top - 80);
                                }


                            }


                        }

                        $("#button-confirm").attr('disabled', false);
                    }

                    if (json['error']['recurring']) {
                        $('select[name=\'recurring_id\']').after('<div class="text-danger">' + json['error']['recurring'] + '</div>');
                    }

                    // Highlight any found errors
                    $('.text-danger').parent().addClass('has-error');
                }

                if (json['success']) {

                    confirmhe();


                    //$('#cart > button').html('<span id="cart-total"><i class="fa fa-shopping-cart"></i> ' + json['total'] + '</span>');

                    //$('html, body').animate({ scrollTop: 0 }, 'slow');

                    //$('#cart > ul').load('index.php?route=common/cart/info ul li');
                }
            },
            error: function (xhr, ajaxOptions, thrownError) {
                alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
            }
        });


    }

    function confirmhe() {
        $.ajax({
            url: 'index.php?route=checkout/confirm_he',
            dataType: 'html',
            beforeSend: function () {
                //$("#button-confirm-mobile").attr('disabled',true);
                $("#button-confirm").attr('disabled', true);
            },
            complete: function () {
                //$("#button-confirm-mobile").attr('disabled',false);

            },
            success: function (html) {
                //$('#collapse-checkout-confirm .panel-body').html(html);

                //$('#button-confirm').on('click', function() {
                $.ajax({
                    url: 'index.php?route=extension/payment/cod/confirm',
                    dataType: 'json',
                    beforeSend: function () {
                        //$("#button-confirm-mobile").attr('disabled',true);
                        $("#button-confirm").attr('disabled', true);
                    },

                    success: function (json) {
                        if (json['redirect']) {
                            location = json['redirect'];
                        }
                        //$("#button-confirm").attr('disabled',false);
                    },
                    error: function (xhr, ajaxOptions, thrownError) {
                        alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
                    }
                });
                //});

            },
            error: function (xhr, ajaxOptions, thrownError) {
                alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
                $("#button-confirm").attr('disabled', false);
            }
        });
        ///////
    }

    function guestsavehebing() {
        $.ajax({
            url: 'index.php?route=checkout/guest/savehebing',
            type: 'post',
            data: $('#collapse-payment-address input[type=\'text\'], #collapse-payment-address input[type=\'date\'], #collapse-payment-address input[type=\'datetime-local\'], #collapse-payment-address input[type=\'time\'], #collapse-payment-address input[type=\'checkbox\']:checked, #collapse-payment-address input[type=\'radio\']:checked, #collapse-payment-address input[type=\'hidden\'], #collapse-payment-address textarea, #collapse-payment-address select'),
            dataType: 'json',
            beforeSend: function () {
                //$("#button-confirm-mobile").attr('disabled',true);
                $("#button-confirm").attr('disabled', true);
            },
            complete: function () {
                //$("#button-confirm-mobile").attr('disabled',false);

            },
            success: function (json) {

                if (json['redirect']) {
                    location = json['redirect'];
                } else if (json['error']) {
                    var elementnoteo = '';
                    for (var i in json['error']) {
                        var element = $('#input-payment-' + i.replace('_', '-'));
                        if (!elementnoteo) {
                            elementnoteo = element;

                            $('.has-error').removeClass('has-error');
                            $('.text-danger').remove();
                            $(element).after('<div class="text-danger">' + json['error'][i] + '</div>');

                            // if ($(element).parent().hasClass('input-group')) {
                            //     // if ($(element).parent().children().hasClass('text-danger')) {
                            //         $('.text-danger').remove();
                            //     // }
                            //     $(element).parent().after('<div class="text-danger">' + json['error'][i] + '</div>');
                            // } else {
                            //     // if ($(element).parent().children().hasClass('text-danger')) {
                            //         $('.text-danger').remove();
                            //     // }
                            //     $(element).parent().after('<div class="text-danger">' + json['error'][i] + '</div>');
                            // }

                            $('#tipModule').text(json['error'][i]).show();
                            setTimeout(function () {
                                $('#tipModule').text('').hide();
                            }, 1500);
                        }


                    }
                    // window.location.hash = "#" + elementnoteo.attr("id");
                    $(window).scrollTop($('#scrollBuy').offset().top-36);


                    $("#button-confirm").attr('disabled', false);
                    // Highlight any found errors
                    $('.text-danger').parent().addClass('has-error');
                } else {


                    cartadd();


                }
            },
            error: function (xhr, ajaxOptions, thrownError) {
                alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
            }
        });

    }


    //--></script>

